import { defineStore, acceptHMRUpdate } from 'pinia'
export const useUserStore = defineStore({
    id: 'user',
    state: () => ({
      userInfo:{},
      theme: 'dark',
    }),
    actions: {
      changeTheme(theme:string) {
        this.theme = theme
      },
      setUserInfo(userInfo:object){
        this.userInfo = userInfo
      }
    },
}) 
